package com.xf.lastmall.order.api.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 核销记录表
 * </p>
 *
 * @author mybatis plus自动生成代码类：MybatisResourcesGenerator.java
 * @since 2019-06-14
 */
@Data
public class OrderConsumeRecodeEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private String id;

    /**
     * 项目编码
     */
    private String mallCode;

    /**
     * 订单类型[团购/秒杀/活动]
     */
    private String orderType;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 子订单号
     */
    private String orderSubNo;

    /**
     * 核销码
     */
    private String consumeCode;

    /**
     * 退货数量
     */
    private Integer returnQuality;

    /**
     * 核销数量
     */
    private Integer consumeQuality;

    /**
     * 核销金额
     */
    private BigDecimal consumeAmount;

    /**
     * 核销商品原价（单价）
     */
    private BigDecimal consumeMarketPrice;

    /**
     * 是否支持退货(0:不支持/1支持)
     */
    private Integer canReturn;

    /**
     * 核销状态
     */
    private String status;

    /**
     * 用户名称
     */
    private String memberName;

    /**
     * 核销时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date consumeTime;

    /**
     * 核销人id
     */
    private String consumeUserId;

    /**
     * 核销人名称
     */
    private String consumeUserName;

    /**
     * 核销渠道[APP、PC]
     */
    private String channel;

    /**
     * 核销备注
     */
    private String consumeRemark;

    /**
     * 核销商户编码
     */
    private String merchantCode;

    private String merchantName;

    private String erpnoList;

    private String consumeSerialNum;

    private BigDecimal payDiscountAmount;//支付享受折扣/优惠金额

    private BigDecimal leftPayDiscountAmount;//退货退款，剩余支付优惠金额

    /**
     * 商品类型(3-团购券)
     */
    private Integer goodsType;
    /**
     * 券名称
     */
    private String title;
    /**
     * 券售价
     */
    private String gbPrice;
    /**
     * 券面值
     */
    private String marketPrice;
    /**
     * 券图片
     */
    private String picCoverUrl;

    private String skuGroup;

    private String gbId;

    private int num;

    private int returnedNum;

    /**
     * @see com.crland.mixc.mixcmarketing.enums.DeliveryWayEnum
     */
    private Integer orderDeliveryWay;

}
